//
//  ZXRecomSubscripitionManager.m
//  XiMaFM
//
//  Created by fanzhuxian on 2017/9/8.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "ZXRecomSubscripitionManager.h"
#import "ZXReadAddModel.h"

//?号前网址
#define KRecomSubscription @"http://180.153.255.6/mobile/discovery/v1/rank/album"

@implementation ZXRecomSubscripitionManager

//http://180.153.255.6/mobile/discovery/v1/rank/album?device=iPhone&pageId=1&pageSize=20&rankingListId=133&scale=2&target=main&version=6.3.6
+ (id)getRecomSubscriptionpageId:(NSInteger)pageId WithIntroduceCompletionHandle:(void(^)(id responseObject, NSError *error))completed{
    
    NSDictionary * parm = @{@"device":@"iPhone",
                            @"pageId":@(pageId),
                            @"pageSize":@"20",
                            @"rankingListId":@"133",
                            @"scale":@"2",
                            @"target":@"main",
                            @"version":@"6.3.6"};
    
    return [self GET:KRecomSubscription parameters:parm complationHandle:^(id responseObject, NSError *error) {
        completed([ZXReadAddModel mj_objectWithKeyValues:responseObject],error);
    }];
}


@end
